package ru.ys.physics;


public class Normalizer {

	/**
	 * @param args
	 */
	public Double[] normalize(Double[] array, Double min, Double max) {
		Double[] result = new Double[array.length];

		for (int i = 0; i < array.length; ++i) {
			result[i] = (array[i] - min) / (max - min);
		}
		
		return result;

	}

}
